<style>
    .tooltip_ext {
        position: relative;
        display: inline-block;
        border-bottom: 1px dotted black; /* Add a dotted border bottom */
        cursor: help; /* Change cursor to a help icon */
    }

    .tooltip_ext .tooltiptext {
        visibility: hidden;
        width: 800px;
        background-color: #555;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -700px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tooltip_ext:hover .tooltiptext {
        visibility: visible; 
        opacity: 1;
    }

    .tooltip_ext1 {
        position: relative;
        display: inline-block;
        border-bottom: 1px dotted black; /* Add a dotted border bottom */
        cursor: help; /* Change cursor to a help icon */
    }

    .tooltip_ext1 .tooltiptext1 {
        visibility: hidden;
        width: 500px;
        background-color: #555; 
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -200px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tooltip_ext1:hover .tooltiptext1 {
        visibility: visible;
        opacity: 1;
    }
</style>

<br>
<h2>
    <u>Your task:</u>
</h2>
<div style="padding-left: 30px;">
    <br>
    In this study, you act as a customer who receives information <b>on the quality of a hypothetical financial product</b> and has to decide <b>what is the true quality of the product.</b> <b> You are paid more the more accurate your guess for the true investment product’s quality is.</b>
        <ul>
            <li>
                
                The investment product’s quality is determined by the computer. Specifically, the computer <b>selects a number between 0 and 20.</b> 

            </li>
            <li>
                	
                There is a financial advisor.  The financial advisor is another participant who was randomly matched to you. Your financial advisors <b>sees the investment quality.</b>  Both yours and your the financial advisor's earnings depend on your  estimate for the quality. However, you are paid in different ways:

                <ul>
                     <li>
                        <b>
                            The financial advisor receives more money the higher you estimate the financial product’s quality,   
                          </b>
                          independent of what the true investment quality is.
                    </li>
                    <li>
                        
                            <b>You (the customer) receive more money the more accurate your estimate,</b> i.e. the closer your estimate is to the actual investment quality.  
                        
                       
                    </li>

                </ul>


                </li>


                <li>
                    In case you’re interested in how your as well as your advisor's bonuses are calculated, please   <div class="tooltip_ext">
                        hover here.
                        <span class="tooltiptext">
                            
                            <div class="plot-container" style="display: flex; justify-content: space-evenly; " >

                                <div style="width: 50%;
                                text-align: center;
                                border: 1px solid black;
                                padding: 10px;
                                margin: 10px;"> 
                                    <b>      
                                        Your financial advisor:
                                    </b>
                                            Bonus (in $) = <br>
                                            $10 –  0.025 &#215; (20 – your  estimate)&#178;
                                        
                                </div>   
                                <div style="    width: 50%;
                                text-align: center;
                                border: 1px solid black;
                                padding: 10px;
                                margin: 10px; ">
                                    <b>
                                        You:
                                    </b>
                                            Bonus (in $) = <br>
                                            10 –  0.025 &#215; (true investment quality – your  estimate)&#178;
                                        
                                </div> 
 
             
                             
                        </div>    
                        </span>
                    </div>
                </li>
                <li>
                    After your financial advisor sees the  investment product’s quality and before you make a decision about your estimate, the financial advisor can decide <b>to Reveal the true investment quality to you or to Hide it.</b> 
                    <ul>
                        <li>
                            	If the financial advisor decides to <b>Reveal</b>, you will learn the investment product’s quality. The financial advisor cannot lie about the quality.
                        </li>
                        <li>
                                If the financial advisor decides to <b>Hide</b>, you will not learn the investment product’s quality. 
                        </li>
                    </ul>
            </li>


</ul>
</div>
<br>
    <hr>   
    <br>
<h2>
<u>Your bonus payment:</u>
</h2>
<div style="padding-left: 30px;">
    <br>
    Your decisions may affect your bonus payment. If a decision in this study is selected for payment, you will earn a larger bonus the more accurate you estimate the investment quality, up to a maximum of $10. Specifically, your bonus will be equal to

    <center>
        <div class="formula">
            10 –  0.025 &#215; (true investment quality – your  estimate)&#178;
        </div>
    </center>
</div>
<div style="width: 100%; text-align: center; margin-top: 10px" class="instr_button_div">
    <button id="button_instr" class="revealbutton instr_button"><span style="color:#fff;">Next</span></button>
</div>
<div class="hidding_div" style="display: none;">
    <br>
    <hr>
 <br>
 <h2>
    <u>Example:</u>  
</h2>
<br>
<center>
    <img class="example_image" style="margin: 5px; border: 2px solid lightgray; width: 75%;" alt="Example image of the decision screen (input later)" src="https://github.com/sebre97/Attenuation/blob/main/Instructions/figures/instr_figures/CHP.png?raw=true">
</center>
<div style="padding-left: 30px;">
    <br>
    <ul>
        <li>
            In this example, the financial advisor chose not to reveal the investment product’s quality to you. 
        </li>
        <li> 
            	You then  estimate the investment product’s quality.
        </li> 
    </ul>
</div>  
<br>
<hr>
<br>
<h2>
   <u>Your certainty:</u>
</h2>
<div style="padding-left: 30px;">
   <br>
   In each round, we will ask you two questions:
       <br>
   <ul>
       <li>
        You will then estimate the investment product’s quality.
    </li>
       <li>
        We will ask you <b>how certain</b> you are about your decision. Specifically, we are interested in how likely you think it is (in percentage terms) that yours is actually the best possible decision given your personal preferences and the available information.
    </li> 
   </ul>
</div>
</div>
